package com.woniu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.entity.BlessingConfig;
import com.woniu.vo.BlessingConfigVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Description:
 * @Author: woniu
 * @date: 2023/12/22 15:45
 */
@Mapper
public interface BlessingConfigMapper extends BaseMapper<BlessingConfig> {
    @Select("SELECT bc.blessing_content AS content FROM blessing_config AS bc ORDER BY RAND() LIMIT 1")
    BlessingConfigVO findRandomVO();

}
